package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Sysnotice;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysnoticeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Sysnotice record);

    Sysnotice selectByPrimaryKey(Long id);

    List<Sysnotice> selectAll();


    List<Sysnotice> selectForlist(QueryObject qo);

    Sysnotice selectContetByNoticeId(Long noticeId);

    int selectSysnoticeByState(Long userId);

    List<Sysnotice> selectSysnotices(Long userId);

    void updataSysnoticeState(@Param("state") int state, @Param("userId") Long userId);
}